-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Restructure CI to prepare for required checks and merge queues #61978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restructure CI to prepare for required checks and merge queues #61978
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR restructures the GitHub Actions CI workflow to support merge queues with a subset of checks and to enforce required checks before merging.
- Introduces a
merge_group
event trigger for queue-based merges. - Refactors the testing matrix into a single
matrix.config
array with per-item skip flags. - Adds a final
required
job that fails if any needed job did not succeed or was not skipped.
Comments suppressed due to low confidence (2)
.github/workflows/ci.yml:15
- Remove or clarify this commented-out
release-*
branch entry undermerge_group
. If release branches should also go through merge queues, uncomment it or document the intention to avoid confusion.
# - release-*
.github/workflows/ci.yml:31
- [nitpick] The matrix.config section contains many nearly identical entries. Consider using YAML anchors or a small generation script to DRY up the repeated OS/node-version combinations and reduce maintenance overhead.
config:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely a bit more verbose. Only one way to see how it pans out, really
Unfortunately this didn't get into 5.9 so I'll have to cherry-pick it over if we want to enable required checks there too. |
@typescript-bot cherry-pick this to release-5.9 |
Hey, @jakebailey! I've created #62164 for you. |
…e-5.9 (#62164) Co-authored-by: Jake Bailey <[email protected]>
This pulls the same method I used in tsgo to add required checks, plus merge queues using only a subset of the checks. Annoying in this repo where we have such a large matrix to write out, but oh well. Supporting this many versions of Node is a temporary problem if anything.
Also, while here, test Node 24.